package com.ruubypay.miss.miniotest.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author fj
 * @date 2025/2/25 09:23
 */
@Entity(name = "t_order")
public class Order {
    @Id
    private Long id;
    private Long userId;
    private Integer totalPrice;
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", totalPrice=" + totalPrice +
                ", status=" + status +
                '}';
    }
}
